package com.vo;

import java.util.Map;

public class TempfileInfo {
	private int fileid = 0;
	private int pageOffset = 0;
	private int pageLength = 10;
	private int pageCount = 0;
	private int count = 0;
	private Map fileMap;
	private Map bigFileMap;
	private String serverPath = "";
	private String fileName = "";
	private String fileKey = "";

	public String getFileKey() {
		return fileKey;
	}

	public void setFileKey(String fileKey) {
		this.fileKey = fileKey;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getServerPath() {
		return serverPath;
	}

	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}

	public Map getFileMap() {
		return fileMap;
	}

	public void setFileMap(Map fileMap) {
		this.fileMap = fileMap;
	}

	public Map getBigFileMap() {
		return bigFileMap;
	}

	public void setBigFileMap(Map bigFileMap) {
		this.bigFileMap = bigFileMap;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getFileid() {
		return fileid;
	}

	public void setFileid(int fileid) {
		this.fileid = fileid;
	}

	public int getPageOffset() {
		if (pageOffset < 0) {
			pageOffset = 0;
		}
		if (pageOffset > pageCount) {
			pageOffset = pageCount;
		}
		return pageOffset;
	}

	public void setPageOffset(int pageOffset) {
		this.pageOffset = pageOffset;
	}

	public int getPageLength() {
		return pageLength;
	}

	public void setPageLength(int pageLength) {
		this.pageLength = pageLength;
	}
}
